package com.example.demo.stu8;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;
import java.util.Map;

@Data
//@Configuration(proxyBeanMethods = false)
@ConfigurationProperties
public class ConutClass {
    private List<Servers> servers;
    private Map<String,Users> users;

    private String [] names;

    @Override
    public String toString(){
        return "ConutClass{ \n"+
                "网站服务器="+servers+"\n" +
                "用户信息列表="+users+"\n" +
                "名字列="+names+"\n" +
                "}";
    }

}
